import request from '@/utils/request'

// 查询航线信息列表
export function listAirway(query) {
  return request({
    url: '/baseinfo/airway/list',
    method: 'get',
    params: query
  })
}

// 查询航线信息详细
export function getAirway(airwayid) {
  return request({
    url: '/baseinfo/airway/' + airwayid,
    method: 'get'
  })
}

// 新增航线信息
export function addAirway(data) {
  return request({
    url: '/baseinfo/airway',
    method: 'post',
    data: data
  })
}

// 修改航线信息
export function updateAirway(data) {
  return request({
    url: '/baseinfo/airway',
    method: 'put',
    data: data
  })
}

// 删除航线信息
export function delAirway(airwayid) {
  return request({
    url: '/baseinfo/airway/' + airwayid,
    method: 'delete'
  })
}
